<?php
$this->breadcrumbs=array(
	'Competency Libraries'=>array('index'),
	$model->COMP_LIB_CODE,
);

$this->menu=array(
	array('label'=>'List CompetencyLibrary', 'url'=>array('index')),
	array('label'=>'Create CompetencyLibrary', 'url'=>array('create')),
	array('label'=>'Update CompetencyLibrary', 'url'=>array('update', 'id'=>$model->COMP_LIB_CODE)),
	array('label'=>'Delete CompetencyLibrary', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->COMP_LIB_CODE),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage CompetencyLibrary', 'url'=>array('admin')),
);
?>

<h1>View CompetencyLibrary #<?php echo $model->COMP_LIB_CODE; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'COMP_LIB_CODE',
		'COMP_ELEM_CODE',
		'COMP_LIB_NAME',
		'COMP_LIB_DESC',
	),
)); ?>


<br/>
<h2>List CompetencyContent #<?php echo $model->COMP_LIB_CODE; ?></h2>
<?php echo CHtml::link('Create Content',array('competencyContent/create'))?>
<?php 

$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$model->getContentId($_GET['id']),
    'columns'=>array('ID',
		'LEVEL',
		'COMP_LIB_CODE',
		'STATEMENT',),
));


//$this->widget('zii.widgets.CListView', array(
	//'dataProvider'=>$content,
	//'itemView'=>'_viewContent',
//)); 

?>
